package com.ssm.subject.infra.basic.mapper;

import com.ssm.subject.infra.basic.entity.SubjectCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 题目分类(SubjectCategory)表数据库访问层
 *
 * @author makejava
 * @since 2024-11-21 17:39:18
 */
@Mapper
public interface SubjectCategoryDao {

    /**
     * 新增数据
     *
     * @param subjectCategory 实例对象
     * @return 影响行数
     */
    int insert(SubjectCategory subjectCategory);

    /**
     * 修改数据
     *
     * @param subjectCategory 实例对象
     * @return 影响行数
     */
    int update(SubjectCategory subjectCategory);


    List<SubjectCategory> queryCategory(SubjectCategory subjectCategory);

    SubjectCategory queryById(Long categoryId);

    Integer querySubjectCount(Long id);
}

